package com.htjc.integral.activity.mapper;


import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.htjc.integral.model.activity.ChouJiangLiShiTiaoJian;
import com.htjc.integral.model.activity.EcAwardProvinces;
import com.htjc.integral.model.activity.EcPromotion;
import com.htjc.integral.model.activity.EcPromotionAwardSetting;
import com.htjc.integral.model.activity.EcPromotionLotteryRecord;
import com.htjc.integral.model.activity.EcPromotionParamValue;
import com.htjc.integral.model.activity.EsgccDbuser;


/**
 * 分类处理Mapper
 * @author zw
 *
 */
@Mapper
public interface IntegralLotteryMapper {
	/**
	 * 促销活动实例表信息
	 * @param promotionId
	 * @return
	 */
	public EcPromotion getEcPromotionById(String promotionId);
	/**
	 *  抽奖奖品设置信息 
	 * @param promotionId
	 * @return
	 */
	public List<EcPromotionAwardSetting> getEcPromotionAwardSettingList(String promotionId);
	/**
	 *  查询当前用户供电公司是否在抽奖 地市范围内
	 * @param param
	 * @return
	 */
	public List<EcAwardProvinces> selectEcAwardProvinces(Map<String, String> param);
	/**
	 *  抽奖奖品设置信息(按照地市查询奖池)
	 * @param param
	 * @return
	 */
	public List<EcPromotionAwardSetting> getEcPromotionAwardSettingListCity(Map<String, String> param);
	/**
	 * 抽奖奖品一条信息（地市范围抽奖）
	 * @param paramMap
	 * @return
	 */
	public EcPromotionAwardSetting getEcPromotionAwardSettingCity(Map<String, Object> paramMap);
	/**
	 * 修改抽奖奖品信息
	 * @param promotionId
	 */
	public void updateEcPromotionAwardSetting(String promotionId);
	/**
	 * 抽奖记录表信息取前50条记录(最近一周)
	 * @param cjlt
	 * @return
	 */
	public List<EcPromotionLotteryRecord> getEcPromotionLotteryRecordList(ChouJiangLiShiTiaoJian cjlt);
	/**
	 * 促销活动实例参数值信息
	 * @param promotionId
	 * @return
	 */
	public List<EcPromotionParamValue> getEcPromotionParamValueList(String promotionId);
	/**
	 * 用户当日抽奖记录表信息 
	 * @param paramMap
	 * @return
	 */
	public List<EcPromotionLotteryRecord> yichoujiangcishu(Map<String, Object> paramMap);
	/**
	 * 抽奖奖品设置信息 
	 * @param paramMap
	 * @return
	 */
	public EcPromotionAwardSetting getEcPromotionAwardSetting(Map<String, Object> paramMap);
	/**
	 * 增加抽奖记录表信息
	 * @param eplr
	 */
	public void insertEcPromotionLotteryRecord(EcPromotionLotteryRecord eplr);
	/**
	 *  增加电费红包活动结果表信息 
	 * @param eb
	 */
	public void insertEsgccDbuser(EsgccDbuser eb);
	/**
	 * 修改奖池
	 * @param eppv
	 */
	public void updateEcPromotionParamValue(EcPromotionParamValue eppv);
	/**
	 * 获取个人信息
	 * @param partnerId
	 * @return
	 */
	public List<String> getEcPartner(String partnerId);
	
}